package com.base.taskreports.reports.service.impl;

import org.springframework.stereotype.Service;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.base.taskreports.reports.dao.master.TThresholdDao;
import com.base.taskreports.reports.entiyt.master.TThresholdEntity;
import com.base.taskreports.reports.service.TThresholdService;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 张玉涛
 * @since 2021-11-09
 */
@DS("master")
@Service("tThresholdService")
public class TThresholdServiceImpl extends ServiceImpl<TThresholdDao, TThresholdEntity> implements TThresholdService {

	@Override
	public TThresholdEntity getOneTThreshold(String indicatorCode) {
		QueryWrapper<TThresholdEntity> queryWrapper = new QueryWrapper<TThresholdEntity>();
		queryWrapper.eq("indicator_code", indicatorCode);
		return this.getOne(queryWrapper);
	}

}
